﻿#pragma once

#include "Game.h"
#include "GameBoard.h"

// 主窗口
class MainWindow: public CDialog {
    DECLARE_MESSAGE_MAP()

    private: Game* mGame;           // 游戏
    private: GameBoard mGameBoard;  // 游戏区域

    public: MainWindow(CWnd* parent = NULL);
    public: ~MainWindow();
    private: afx_msg LRESULT OnGameOver(WPARAM, LPARAM);
    private: virtual BOOL OnInitDialog();
    private: afx_msg void OnMenuItemSetBorderClicked(UINT);
    private: afx_msg void OnMenuItemSetDifficultyClicked(UINT);
    private: afx_msg void OnMenuItemSetPictureClicked();
    private: afx_msg void OnMenuItemStartClicked();
    private: afx_msg void OnPictureCtrlClicked(UINT);
};
